/* Copyright 2005 Sun Microsystems, Inc. All rights reserved. You may not modify, use, reproduce, or distribute this software except in compliance with the terms of the License at: http://developer.sun.com/berkeley_license.html
$Id: component.js,v 1.1 2006/10/10 00:38:03 gmurray71 Exp $
*/

var count = 10;
var diggTopic = "all";

if (typeof widget.args != 'undefined') {
   if (typeof widget.args.itemCount != 'undefined') {
       count = widget.args.itemCount;
   }
   if (typeof widget.args.diggTopic != 'undefined') {
       diggTopic = widget.args.diggTopic;
   }
}

var targetDiv = document.getElementById(widget.uuid);
var d = new jmaki.DiggLoader(targetDiv, diggTopic, count);
jmaki.attributes.put(widget.uuid, d);
